<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use EasyWeChat\Foundation\Application;
class WxController extends Controller
{
    public function wechat(){

    	$options = [
		'debug' => true,
		'app_id' => 'wxb598ba8d3d6a563e',
		'secret' => 'b0f98f95d4a9ba63ca6db4dcec5ec048',
		'token' => 'zhangwei',
		// 'aes_key' => null, // ᭌݢ
		'log' => [
		'level' => 'debug',
		'file' => 'F:/amp/htdocs/23/laravel/public/wechat.log',
		// XXX: ᕷ੒᪠ஆѺѺѺѺ
		],
		//...
		];
		$app = new Application($options);
	
		$response = $app->server->serve();
		// ਖ਼ߥଫᬌڊ
		return $response;

    }
}
